From: kaf24@firebug.cl.cam.ac.uk Date: Thu, 25 May 2006 13:45:40 +0000 (+0100) Subject: [XEND] Remember cpu-pinning information across guest restarts. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16025^2~17 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=29a0da72ab98e672ffd2c6348699ccf4278046e6;p=xen.git [XEND] Remember cpu-pinning information across guest restarts. Signed-off-by: Qing He --- diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index e28f9914a1..0dd3a54eef 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -1546,6 +1546,10 @@ class XendDomainInfo: self.configure_bootloader() config = self.sxpr() + if self.infoIsSet('cpus') and len(self.info['cpus']) != 0: + config.append(['cpus', reduce(lambda x, y: str(x) + "," + str(y), + self.info['cpus'])]) + if self.readVm(RESTART_IN_PROGRESS): log.error('Xend failed during restart of domain %d. ' 'Refusing to restart to avoid loops.',